package top.revery.admin.controller_common;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.revery.admin.util.FeignServiceMapping;
import top.revery.api.config.HttpResponResult;
import top.revery.api.config.ResultType;
import top.revery.api.config.UserPageData;

import java.util.HashMap;
import java.util.Map;

/**
 * <h1> ---  --- </h1>
 * Created by  revery.top jun
 * Date  2020-01-16 16:09
 */
@RestController
@RequestMapping("/common/task/")
public class TaskService {

    @PostMapping("/getList")
    Object getList(){
        HttpResponResult httpResponResult = new HttpResponResult(ResultType.SUCCESS);;

        Map map = new HashMap();
        map.put("id","6");
        UserPageData pageData = FeignServiceMapping.taskServiceDataSource.getList(1,10,map);

        return httpResponResult;
    }

}
